<?php

use Biz\service\FineGoodsBrokeNews\DrawerService;

/**
 * @deprecated
 */
class DrawerAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_NOTHING;

    public function main()
    {
        $type = (int)$this->getRequest()->getQuery('type', 1);
        $page = (int)$this->getRequest()->getQuery('page', 1);
        list($list, $isOver) = DrawerService::list($type, $page);
        $this->setSuccess(['list' => $list, "is_over" => $isOver]);
    }
}